package com.healthcloud.dao;


import com.healthcloud.entity.*;
import com.healthcloud.utils.PageParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QulitityMapper extends CRUDMapper<QulitityEntity, Integer> {
	List<QulitityEntity> search(@Param("entity") QulitityEntity entity, @Param("pageParam") PageParam pageParam,
								@Param("hospIds") String hospIds);

	int count(@Param("entity") QulitityEntity entity, @Param("hospIds") String hospIds);

	List<CheckKBEntity> searchKB(@Param("entity") CheckKBEntity entity, @Param("pageParam") PageParam pageParam);

	int countKB(@Param("entity") CheckKBEntity entity);

	CheckKBEntity searchKBById(@Param("id") int id);

	int updateKB(@Param("entity") CheckKBEntity entity);

	int addKB(@Param("entity") CheckKBEntity entity);

	List<TestDataEntity> record(@Param("entity") TestDataEntity entity, @Param("pageParam") PageParam pageParam);

	int countRecord(@Param("entity") TestDataEntity entity);


	List<InstrumentInfo> searchDevice(@Param("entity") InstrumentInfo entity, @Param("pageParam") PageParam pageParam);

	int countDevice(@Param("entity") InstrumentInfo entity);

	int createDevice(@Param("entity") InstrumentInfo entity);

	int updateDevice(@Param("entity") InstrumentInfo entity);

	int deleteDevice(@Param("id") int id);

	InstrumentInfo searchDeviceById(@Param("id") int id);

	List<InstrumentInstallEntity> searchInstall(@Param("entity") InstrumentInstallEntity entity, @Param("pageParam") PageParam pageParam);

	int countInstall(@Param("entity") InstrumentInstallEntity entity);

	int createInstall(@Param("entity") InstrumentInstallEntity entity);

	int updateInstall(@Param("entity") InstrumentInstallEntity entity);

	int infoInstall(@Param("entity") InstrumentInstallEntity entity);

	int deleteInstall(@Param("id") int id);

	int unbundlingInstall(@Param("ids") List<Integer> ids);

	InstrumentInstallEntity searchInstallById(@Param("id") int id);

	List<InstrumentInstallEntity> searchInstallByEntity(@Param("entity") InstrumentInstallEntity entity);

	/*todo*/
/*	List<InstrumentRepairEntity> searchRepair(@Param("entity") InstrumentRepairBean entity, @Param("pageParam") PageParam pageParam);

	int countRepair(@Param("entity") InstrumentRepairBean entity);

	InstrumentRepairBean searchRepairById(@Param("id") int id);

	int createRepair(@Param("entity") InstrumentRepairBean entity);

	int updateRepair(@Param("entity") InstrumentRepairBean entity);

	int updateRepairImg(@Param("entity") InstrumentRepairBean entity);

	int deleteRepair(@Param("id") int id);

	int deleteRepairByInstallId(@Param("id") int id);*/

	List<VersionEntity> version(@Param("entity") VersionEntity entity, @Param("pageParam") PageParam pageParam);

	int countVersion(@Param("entity") VersionEntity entity);

	VersionEntity searchVersionById(@Param("id") int id);

	int createVersion(@Param("entity") VersionEntity entity);

	int updateVersion(@Param("entity") VersionEntity entity);

	int updateVersionAddress(@Param("entity") VersionEntity entity);

	int deleteVersion(@Param("id") int id);

	List<QualityEntity> quadata(@Param("entity") QualityEntity entity, @Param("pageParam") PageParam pageParam);

	int countQuadata(@Param("entity") QualityEntity entity);

	List<BaseCodeEntity> searchVersionNum(@Param("entity") BaseCodeEntity entity, @Param("pageParam") PageParam pageParam);

	int countVersionNum(@Param("entity") BaseCodeEntity entity);

	int createVersionNum(@Param("entity") BaseCodeEntity entity);

	int updateVersionNum(@Param("entity") BaseCodeEntity entity);

	BaseCodeEntity searchVersionNumById(@Param("id") int id);

	void deleteBatchByIds(@Param("idList") List<Integer> idList);

}